package com.yxr.affairs.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.youth.banner.listener.OnBannerListener;
import com.yxr.affairs.LoginActicity1;
import com.yxr.affairs.R;
import com.yxr.affairs.Webview;
import com.yxr.affairs.base.BaseFragment;
import com.yxr.affairs.utils.ToastUtil;
import com.yxr.affairs.utils.UserInfo1;
import com.yxr.affairs.view.ClickImageView;

import butterknife.BindView;
import butterknife.ButterKnife;

public class StoreFragment extends BaseFragment implements View.OnClickListener, OnBannerListener {


    @BindView(R.id.share_qq_id)
    ClickImageView shareQqId;
    @BindView(R.id.share_winxin_id)
    ClickImageView shareWinxinId;
    @BindView(R.id.share_friends_id)
    ClickImageView shareFriendsId;
    @BindView(R.id.activit_xinxi)
    ClickImageView activitXinxi;
    @BindView(R.id.activit_yiji)
    ClickImageView activitYiji;
    @BindView(R.id.activit_gengduo)
    ClickImageView activitGengduo;
    @BindView(R.id.more)
    ClickImageView more;

    @Override
    protected int attachLayoutRes() {
        return R.layout.fragment_store;
    }

    @Override
    protected void initViews() {


        if (!UserInfo1.isLogin()) {

            Intent intent = new Intent();
            //SoilsenerActivity.class为想要跳转的Activity
            intent.setClass(getActivity(), LoginActicity1.class);
            startActivity(intent);
        }


        shareQqId.setClickListener(new ClickImageView.ClickListener() {
            @Override
            public void onClick() {
                ToastUtil.toast(mContext, "暂时没有数据");
            }

            });
        shareWinxinId.setClickListener(new  ClickImageView.ClickListener() {
            @Override
            public void onClick() {
                ToastUtil.toast(mContext, "暂时没有数据");
            }
        });
        shareFriendsId.setClickListener(new  ClickImageView.ClickListener() {
            @Override
            public void onClick() {
                ToastUtil.toast(mContext, "暂时没有数据");
            }
        });
        activitXinxi.setClickListener(new  ClickImageView.ClickListener() {
            @Override
            public void onClick() {
                ToastUtil.toast(mContext, "暂时没有数据");
            }
        });
        activitYiji.setClickListener(new  ClickImageView.ClickListener() {
            @Override
            public void onClick() {
                ToastUtil.toast(mContext, "暂时没有数据");
            }
        });
        activitGengduo.setClickListener(new  ClickImageView.ClickListener() {
            @Override
            public void onClick() {
                ToastUtil.toast(mContext, "暂时没有数据");
            }
        });
        more.setClickListener(new  ClickImageView.ClickListener() {
            @Override
            public void onClick() {
                ToastUtil.toast(mContext, "暂时没有数据");
            }
        });
    }

    @Override
    protected void updateViews(boolean isRefresh) {

    }


    @Override
    protected void onError_(Throwable e) {

    }

    @Override
    protected void onCancel_() {

    }


    @Override
    public void onClick(View v) {

    }

    @Override
    public void OnBannerClick(int position) {

    }


    @Override
    public void onDestroyView() {
        super.onDestroyView();

    }


}
